package cn.itsource.org.domain;

import cn.itsource.base.domain.BaseDomain;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain {
    private String sn;
    private String name;
    @ApiModelProperty("上级部门的路径,每个部门之间使用/隔开")
    private String dirPath;
    /* 0:正常 -1:禁用 */
    private Integer state;
    /* 管理员id */
    private Long manager_id;
    private Employee employee;
    /* 上级部门的id*/
    private Long parent_id;
    private Department parent;//


    //站在父亲角度 查出对应的子菜单
    private List<Department> children=new ArrayList<>();


}
